projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4067d06
)
GtkActionMuxer: Plug a memory leak
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 29 Jun 2014 02:37:14 +0000
(22:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 29 Jun 2014 02:37:14 +0000
(22:37 -0400)
valgrind complained that we leak the primary_accels table.
gtk/gtkactionmuxer.c
patch
|
blob
|
history
diff --git
a/gtk/gtkactionmuxer.c
b/gtk/gtkactionmuxer.c
index 09cb1b3741e15e7a75901690fbe152fe64281200..a1dc9f8110c215762f9f371a9bf3893484cd718c 100644
(file)
--- a/
gtk/gtkactionmuxer.c
+++ b/
gtk/gtkactionmuxer.c
@@
-534,6
+534,8
@@
gtk_action_muxer_finalize (GObject *object)
g_assert_cmpint (g_hash_table_size (muxer->observed_actions), ==, 0);
g_hash_table_unref (muxer->observed_actions);
g_hash_table_unref (muxer->groups);
+ if (muxer->primary_accels)
+ g_hash_table_unref (muxer->primary_accels);
G_OBJECT_CLASS (gtk_action_muxer_parent_class)
->finalize (object);